package com.xs.springagain2;

import com.xs.springagain2.config.DataSourceConfig;
import com.xs.springagain2.service.UserService;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestTransaction {
    @Test
    public void test() {
        AnnotationConfigApplicationContext ioc = new AnnotationConfigApplicationContext(DataSourceConfig.class);
        UserService userService = ioc.getBean(UserService.class);
        userService.addLibrary();
    }
}
